public class Example5_11 {
   public static void main(String args[]) {
     Animal animal;
     animal = new dog();
     animal.cry();
     animal= new cat();
     animal.cry();
  }
}
      
